import menus from '../config/menu-config.js'

// 1.NavRouter
let NavRouter = {
  path: '',
  component: () => import('@/views/home/page/Home'),
  name: 'Home',
  redirect: '/index',
  children: []
}

NavRouter.children = NavRouter.children.concat(menus)

// 2.LoginRouter
let LoginRouter = [
  {
    path: '/login',
    component: () => import('@/views/login/page/Login'),
    name: 'Login',
    meta: { title: '登录' }
  },
  {
    path: '/register',
    component: () => import('@/views/login/page/Register'),
    name: 'Register',
    meta: { title: '注册' }
  }
]

// HomeRouter
let HomeRouter = []
HomeRouter = HomeRouter.concat(NavRouter)
HomeRouter = HomeRouter.concat(LoginRouter)

export {NavRouter, LoginRouter, HomeRouter}
